GtkWindow: some min/nat size corrections.
authorChristoph Reiter <reiter.christoph@gmail.com>
Mon, 22 Jun 2015 17:22:10 +0000 (19:22 +0200)
committerChristoph Reiter <creiter@src.gnome.org>
Wed, 24 Jun 2015 08:58:30 +0000 (10:58 +0200)
commit48ea0cbe4b8bcd37958601d39b9e93be7d28fa8b
tree84190a701997bbd0a19e7d658b30986fb8b961be
parentf9422ab2236f090809fe9f0e9ae88b9f5602841c
GtkWindow: some min/nat size corrections.

Don't add the container border to the title request size; it
is only used for the child widget.

Don't call gtk_widget_get_preferred_width_for_height() for
the title bar with an unrelated height and subtract the title
bar height before querying the child widget width.

Guard against negative size requests after substracting the
borders/shadows and the title bar.

https://bugzilla.gnome.org/show_bug.cgi?id=751341
gtk/gtkwindow.c